package com.zjhn.ds.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.param
 * @Author: sxt
 * @CreateTime: 2023-09-14  15:10
 * @Description:
 * @Version: 1.0
 */
@Data
public class AddUpdateEquipmentParam {

    @ApiModelProperty("机台设备id 空表示新增")
    @JsonProperty("equipment_id")
    private String equipmentId;

    @ApiModelProperty("机台设备名称")
    @JsonProperty("equipment_name")
    @NotBlank(message = "设备名称不能为空")
    @Pattern(regexp="^[\\d]{1,}$",message = "设备名称为数字类别的字符串")
    private String equipmentName;

    @ApiModelProperty("所属车间id")
    @JsonProperty("workshop_id")
    @NotBlank(message = "车间id不能为空")
    private String workshopId;

    @ApiModelProperty("机台设备类别id")
    @JsonProperty("equipment_type_id")
    private String equipmentTypeId;

    @ApiModelProperty("模型id")
    @JsonProperty("model_id")
    private String modelId;

    @ApiModelProperty("针型")
    @JsonProperty("needle_code")
    private String needleCode;

    @ApiModelProperty("针数")
    @JsonProperty("needle_number")
    private String needleNumber;

    @ApiModelProperty("袜型")
    @JsonProperty("stockings_code")
    private String stockingsCode;

    @ApiModelProperty("外联设备")
    @JsonProperty("outreach_device")
    private String outreachDevice;

    @ApiModelProperty("外联设备品牌")
    @JsonProperty("outreach_type")
    private String outreachType;

}
